package org.example.etl.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.example.etl.entity.WarnSimilarHistory;

public interface WarnSimilarHistoryMapper extends BaseMapper<WarnSimilarHistory> {

    @Select(" SELECT COUNT(*) from warnsimilarhistory_number where gj_id=#{gjId};")
    public boolean isExistThisWarnSimilar(String gjId);


    @Update("update warnsimilarhistory_number set count=count+'1' where gj_id=#{gjId}; ")
    public void updateAnWarnSimilarMsg(String gjId);

}
